package com.totcy.atom.adapter;

import android.content.Context;

import com.totcy.atom.R;
import com.totcy.atom.bean.SubjectBean;
import com.totcy.baselibrary.adapter.BaseRecyleAdapter;
import com.totcy.baselibrary.adapter.BaseViewHolder;

import java.util.List;

public class SubjectListAdapter extends BaseRecyleAdapter<SubjectBean> {

    public SubjectListAdapter(Context mContext, List<SubjectBean> mDatas) {
        super(mContext, mDatas, R.layout.item_subject);
    }

    @Override
    protected void convert(Context mContext, BaseViewHolder holder, SubjectBean subjectBean) {
        holder.setText(R.id.tv_subjectName, subjectBean.getName());
        holder.setText(R.id.tv_paperCount, subjectBean.getPapersCount() + "");
    }
}
